<?php
$this->jQuery()->enable();
//foreach($this->paginator as $book) {
//    echo $book['title'].' <b>by</b> '.$book['author'].'<br>';
//}
//echo $this->accordionContainer()->captureStart(
//            'books',
//            array('duration' => 200),
//            array('style' => 'width:450px; height:150px;')
//        );
//
//foreach($this->paginator as $book) {
//    echo $this->accordionPane(
//            'book'.$book['id'],
//            'written by '.$book['author'],
//            array('title' => $book["title"]),
//            array('style' => 'background-color: lightgray;')
//            );
//}
//
//echo $this->accordionContainer()->captureEnd('books');
foreach($this->books as $book) {
    echo $this->accordionPane(
            'books',
            'written by '.$book['author'],
            array('title' => $book["title"])
            );
}

echo $this->accordionContainer('books',
                               array('active' => 'none', 'collapsible'=>'true'));
?>
<p></p>
<?php
echo $this->paginationControl($this->paginator, 'Sliding', 'pagination.phtml');
